package course.myIO;

import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class MyIODemo4 {
    public static void main(String[] args) throws IOException {
        FileOutputStream fos = new FileOutputStream("Day11\\src\\course\\myIO\\test.txt");

        fos.write(97);
        fos.write("\r\n".getBytes());

        fos.write(98);
        fos.write("\r\n".getBytes());

        fos.write(99);
        fos.write("\r\n".getBytes());

        fos.write(100);
        fos.write("\r\n".getBytes());

        fos.write(101);
        fos.write("\r\n".getBytes());

        fos.close();
    }
}
